<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        // function f1(x,y){
        //     console.log((x+y)+"===>"+this)
        // }
        // var ff =f1.bind(null,10,20)
        // ff() 
        function Person(name) {
            this.name = name

        }
        Person.prototype.sayHi= function() {
            console.log('你好',this,this.name);

        }

        function Student(name) {
            this.name = name
        }
        var per = new Person('feng')
        var stu = new Student('zhi')
        var ff = per.sayHi.bind(stu)
        ff()
    </script>
</body>

</html>